import '@ant-design/v5-patch-for-react-19';
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import { BrowserRouter } from "react-router-dom"
import { Provider } from "react-redux"
import DynamicRoutes from "@/router"
import store  from "@/store"

import "normalize.css"
import "@/assets/css/global.scss"
import { ConfigProvider } from 'antd'
import "@/mock/index"
import App from "./App"

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <ConfigProvider>
      <Provider store={store}>
        <App>
          <BrowserRouter>
            <DynamicRoutes />
          </BrowserRouter>
        </App>
      </Provider>
    </ConfigProvider>
  </StrictMode>
)
